home *** CD-ROM | disk | FTP | other *** search
- on loadServerLists
- global gSMSPath, gStuList, gSlash, gStuListPath
- set gStuList to []
- set gStuListPath to []
- set tchDirList to getDirectory(gSMSPath)
- repeat with i = 1 to count(tchDirList)
- set teacher to getAt(tchDirList, i)
- if tail(teacher, 3) = ".id" then
- set clsDirList to getDirectory(gSMSPath & teacher)
- repeat with j = 1 to count(clsDirList)
- set CLASS to getAt(clsDirList, j)
- if tail(CLASS, 3) = ".id" then
- set stuDirList to getDirectory(gSMSPath & teacher & gSlash & CLASS)
- repeat with k = 1 to count(stuDirList)
- set student to getAt(stuDirList, k)
- if tail(student, 3) = ".id" then
- set s to head(student, -3)
- add(gStuList, upperCase(s))
- add(gStuListPath, gSMSPath & teacher & gSlash & CLASS & gSlash & student & gSlash)
- end if
- end repeat
- end if
- end repeat
- end if
- end repeat
- if strList = [] then
- return 0
- else
- return 1
- end if
- end
-
- on loadStuInfo thePath
- global gStuInfo
- set gStuInfo to [:]
- set theFile to thePath & ".inf"
- set strList to readPropTextFile(theFile)
- if strList = EMPTY then
- return 0
- else
- set gStuInfo to strList
- return 1
- end if
- end
-
- on saveStudent
- saveMethod()
- end
-